package elements.login;

import com.robotium.solo.Solo;

import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;
import utils.Util;
import utils.MyException.NotFoundException;

/**
 * 开始使用界面
 * 
 * @author 30669
 *
 */
public class Start_Page {
	public Solo solo;

	public Start_Page(Solo solo) {
		this.solo = solo;
	}

	// com.mainbo.homeschool:id/btn_start
	Button btn_start;
	// com.mainbo.homeschool:id/tv_agreement
	TextView tv_agreement;
//	com.mainbo.homeschool:id/webview
	WebView webview;

	public WebView getWebview()   {
		webview=(WebView) Util.myGetView(solo, "webview");
		return webview;
	}

	public Button getBtn_start()   {
		btn_start = (Button) Util.myGetView(solo, "btn_start");
		return btn_start;
	}

	public TextView getTv_agreement()   {
		tv_agreement = (TextView) Util.myGetView(solo, "tv_agreement");
		return tv_agreement;
	}

	public void click_btn_start() throws NotFoundException {
		solo.clickOnView(getBtn_start());
	}

	public TextView get_Agreement() throws NotFoundException {
		
		return getTv_agreement();
	}

	public void click_tv_agreement()   {
		solo.clickOnView(getTv_agreement());
	}
}
